package com.quanyou.base.framework.dao.model;

public class QueryDefination {

	public static enum Pattern {
		EQUAL, // =
		NOT_EQUAL, // <>
		GREAT, // >
		LESS, // <
		GREAT_EQUAL, // >=
		LESS_EQUAL, // <=
		LIKE, // like
		BETWEEN, // between and
		IN
	}
    /**
     * 查询属性
     */
    private String propertyName;

    /**
     * 查询模式
     */
    private Pattern queryPattern;

    /**
     * 查询值
     */
    private Object[] propertyValues;
    
    public QueryDefination() {
        super();
    }

	public QueryDefination(String propertyName, Pattern queryPattern, Object[] propertyValues) {
		this.propertyName = propertyName;
		this.queryPattern = queryPattern;
		this.propertyValues = propertyValues;
	}


	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public Pattern getQueryPattern() {
		return queryPattern;
	}

	public void setQueryPattern(Pattern queryPattern) {
		this.queryPattern = queryPattern;
	}

	public Object[] getPropertyValues() {
		return propertyValues;
	}

	public void setPropertyValues(Object[] propertyValues) {
		this.propertyValues = propertyValues;
	}
}
